class Token
{
    public Token(String filename, String word, int position)
    {
        this.filename = filename;
        this.word = word;
        this.position = position;
    }
    
    public String getWord()
    {
        return word;
    }
    
    public String toString()
    {
        return word + ": " + filename + ": " + Integer.toString(position); 
    }
    
    public String getPlacement()
    {
        return filename + ": " + Integer.toString(position); 
    }

    private String filename;
    private String word;
    private int position;
}
